/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package VO;

import FinancialEntity.Company;
import FinancialEntity.Market;
import java.util.List;

/**
 *
 * @author Sebastian
 */
public class MarketVO {
    
    private Integer id;
    private String name;
    private String nemo;
    private String description;
    private List<Company> companyList;

    public List<Company> getCompanyList() {
        return companyList;
    }

    public void setCompanyList(List<Company> companyList) {
        this.companyList = companyList;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNemo() {
        return nemo;
    }

    public void setNemo(String nemo) {
        this.nemo = nemo;
    }
    
    public Market toEntity(){
        Market market = new Market();
        market.setCompanyList(companyList);
        market.setId(id);
        market.setDescription(description);
        market.setName(name);
        market.setNemo(nemo);
        return market;
    }
}
